package com.pdg.android.splorr.data.enums;

import com.pdg.android.splorr.R;

public enum OpenDoorActionResult {
	SUCCESS(true,R.string.door_open_action_result_success), 
	ALREADY_OPEN(false,R.string.door_open_action_result_already_open), 
	DOOR_LOCKED(false,R.string.door_open_action_result_door_locked), 
	NO_DOOR_TO_OPEN(false,R.string.door_open_action_result_no_door_to_open);
	private boolean success;
	private int stringId;

	OpenDoorActionResult(boolean theSuccess,int theStringId){
		setSuccess(theSuccess);
		setStringId(theStringId);
	}

	private void setStringId(int theStringId) {
		stringId = theStringId;
	}

	private void setSuccess(boolean theSuccess) {
		success = theSuccess;
	}

	public boolean isSuccess() {
		return success;
	}
	
	public int getStringId(){
		return stringId;
	}

}
